import tokenStore from "../utils/tokenStore";
import contentStore from "../utils/contentStore";
export const getAgreement = async () => {

	return await new Promise(function(resolve, reject) {

		uni.request({
			// method: 'POST',
			url: 'https://zm.quya.vip/api/v1/getAgreement',
			success: (res) => {
				console.log(res)
				if (res.data) {
					contentStore.set({
						title:'',
						created_at:'',
						content:res.data.data.info
					});
					resolve(res.data)
				}
			}
		});
	});

}